extends FunctionCard

func _init() -> void:
	cost = 2
	card_id = "LikePair"

func _ready() -> void:
	card_name = "喜欢对"
	self_destruction = false
	self_description = "对子的基础分变为原来的5倍"
	trigger_timing = 1
	label.text = card_name
	self_descrpition_label.text = self_description

func cardFunction(deck,scoreMapping,selectedCardsDetail):
	scoreMapping.scoreMapping.pair = scoreMapping.scoreMapping.pair * 5 #将对子的基础分变为原来的5倍
	showRunDetail()
	run_detail.text = "对子!"
	await get_tree().create_timer(0.5).timeout  # 等待
	hideRunDetail()
